package com.example.HeadFirstDemo.observe.javaImpl;

import java.util.Observable;

public class DataDemo extends Observable {
    private Integer id;
    private String name;
    private String address;
    public void setData(Integer id,String name,String address){
        //用来标注已经修改过了
        this.setChanged();
        this.notifyObservers();
    }
}
